/*
* $Id: QueryResult.cpp 144 2010-09-11 07:44:56Z volok-aleksej@yandex.ru $
*
* Copyright 2010 by Volokitin Alexey
* All rights reserved
*
*/
#include "Common/include.h"
#include "QueryResult.h"

CQueryResult::CQueryResult(){
	Init();
}

void CQueryResult::Init(){
	m_aResults.clear();
	m_nCurResult = 0;
}

void CQueryResult::AddResult(const MyTable& result){
	m_aResults.push_back(result);
}

MyTable CQueryResult::GetResult(){
	MyTable aTable = m_aResults[m_nCurResult];
	m_nCurResult++;
	return aTable;
}

CQueryResult g_QR;